package service;

import java.util.List;

import pageModel.DataGrid;
import pageModel.Receipt;
import pageModel.SaleHighchart;
import pageModel.SaleStatistic;

public interface ReceiptServiceI {
	/**
	 * 保存一次收银的相关信息,包括收银员、会员、总金额、总数量等
	 * @param receipt
	 * @return
	 */
	public Receipt saveOrUpdate(Receipt receipt);
	/**
	 * 显示销售列表,包括销售号、收银员、会员、支付金额、支付日期
	 * @param receipt
	 * @return
	 */
	public DataGrid datagrid(Receipt receipt);
	/**
	 * 显示未支付销售订单
	 * @param receipt
	 * @return
	 */
    public DataGrid show(String cashier,Receipt receipt);
    /**
     *销售额数字报表
     * @param year
     * @return
     */
    public List<SaleStatistic> jasper(Receipt receipt);
    /**
     * 销售额图形报表
     * @param year
     * @return
     */
    public List<SaleHighchart> highChart(Receipt receipt);
}
